<template>
  <div class="error-page">
    <div class="error-code">404</div>
    <div class="error-desc">抱歉，你访问的页面不存在</div>
    <el-button type="primary" @click="goHome">返回首页</el-button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/')
}
</script>

<style scoped lang="scss">
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  
  .error-code {
    font-size: 160px;
    font-weight: 600;
    color: #409eff;
    text-shadow: 4px 4px 0 #eee;
    margin-bottom: 16px;
  }
  
  .error-desc {
    font-size: 20px;
    color: #666;
    margin-bottom: 24px;
  }
}
</style> 